<template>
	<view class="home">
		<navbar :isback='false' title="达人商单" backgroundColor='rgba(248, 248, 253, 1)'>
			<view slot="left" class="hleft">
				<!-- <image class="gllogo" src="/static/LOGO.png" /> -->
			</view>
		</navbar>
		<!-- #ifdef APP-PLUS -->
		<!-- <view class="immerse"></view> -->
		<!-- #endif -->
		<view class="newcontent">
			<view class="hone">
				<image class="bg" src="/static/bg.png" mode="" />
				<view class="honeitem">
					<view class="htui">
						推荐达人商单协作平台
					</view>
				</view>
			</view>
			<view class="mtwo">
				<text class="dianname">点亮身份</text>
				<view class="shen">
					<view class="shenitem"  @click="dianClick(3)">
						<text class="sname">商家</text>
						<!-- <text class="dian"></text> -->
					</view>
					<view class="shenitem" @click="dianClick(1)">
						<text class="sname">服务商</text>
						<text class="dian"></text>
					</view>
					<view class="shenitem" @click="dianClick(2)">
						<text class="sname">MCN机构</text>
						<text class="dian" style="background: rgba(255, 87, 51, 1);"></text>
					</view>
					<view class="shenitem shenactive">
						<text class="sname">达人</text>
						<!-- <text class="dian"></text> -->
					</view>
				</view>
			</view>
			<view class="mxian"></view>
			<view class="mthree">
				<image class="tou2" src="/static/tou2.png" mode="" />
				<view class="rennav">
					<text class="nichen txt">我的昵称最多九个字</text>
					<text class="bang">绑定安全手机</text>
				</view>
				<view class="maview">
					<text class="manum">DR17936</text>
					<text class="mamiao">专属账号码</text>
				</view>
			</view>
			<view class="xinbu">
				<view class="buitem" @click="adddaren(1)">添加达人账号</view>
				<view class="buitem" @click="adddaren(2)">补充收款方式</view>
			</view>
			<view class="mxian"></view>
			<view class="xinlist">
				<view class="xinitem">
					<image class="tou2" src="/static/tou2.png" mode="" />
					<view class="xinnav">
						<view class="xinone">
							<text class="xinname txt">昵称昵称昵十个字卡断</text>
							<text class="xinhao">douyinhao</text>
						</view>
						<view class="xinbiaoqian">
							<view class="xbiao xactive">
								<image class="yunjian" src="/static/new/shangbai.png" mode="" />
								<text class="bname">Lv4</text>
							</view>
							<view class="xbiao">
								<image class="yunjian" src="/static/new/htwo.png" mode="" />
								<text class="bname">Lv2</text>
							</view>
							<view class="xbiao">
								<image class="yunjian" src="/static/new/hthree.png" mode="" />
								<text class="bname">3000</text>
							</view>
						</view>
						
					</view>
					<view class="bj">编辑</view>
				</view>
			</view>
		</view>
		<Tabbar :tabIndex="4"></Tabbar>
</view>
</template>
<script>
export default {
	data() {
		return {
			bgcolor:'#fff',
		}
	},
	components: {
	},
	computed: {
	},

	mounted() {
		
	},
	created(){
		uni.hideTabBar()
	},
	async onLoad() {
	},
	beforeCreate(){
		uni.hideTabBar()
	},
	async onShow() {
		
	},
	onReachBottom: function () {
	},
	methods: {
		adddaren(e){
			if(e == 1){
				//添加达人
				this.navrouter("/pages_subject/twoPage/AddAccount");
			}else if(e == 2){
				//补充收款
				this.navrouter("/pages_subject/twoPage/AddShoukuan");
			}
		},
		dianClick(e){
			if(e == 1){
				//点击身份-服务商
				this.navrouter("/pages_subject/twoPage/DianFuwu");
			}else if(e == 2){
				//点击身份-MCN
				this.navrouter("/pages_subject/twoPage/DianMCN");
			}else if(e == 3){
				//点击身份-商家
				this.navrouter("/pages_subject/twoPage/DianShang");
			}
		}
	}
}
</script>

<style lang="scss" scoped>
.newcontent{
	min-height: 100vh;
	background-color:  #f8f8fd;
	// padding-bottom: 100px;
	padding: 0 20px 100px;
	.hone{
		margin:30rpx 0rpx;
		height: 180rpx;
		opacity: 1;
		border-radius: 24rpx;
		position: relative;
		.bg{
			position: absolute;
			width: 100%;
			height: 100%;
			border-radius: 24rpx;
		}
		.honeitem{
			position: relative;
			height: 100%;
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			.htui{
				width: 188px;
				height: 36px;
				opacity: 1;
				border-radius: 50px;
				background: rgba(255, 255, 255, 0.63);
				box-shadow: 0px 6px 10px  rgba(119, 102, 231, 0.08);
				font-size: 14px;
				font-weight: 400;
				color: rgba(1, 117, 255, 1);
				display: flex;
				align-items: center;
				justify-content: center;
				margin-top: 7%;

			}
		}
	}
	.mtwo{
		border-radius: 12px;
		background: rgba(255, 255, 255, 1);
		box-shadow: 0px 6px 10px  rgba(119, 102, 231, 0.08);
		padding: 20px;
		display: flex;
		flex-direction: column;
		margin-top: 20px;
		.dianname{
			font-size: 14px;
			font-weight: 400;
			display: block;
			text-align: center;
			color: rgba(153, 153, 153, 1);
			display: block;
			margin-bottom: 10px;
		}
		.shen{
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			.shenitem{
				padding: 5px 10px;
				border-radius: 6px;
				background: rgba(255, 255, 255, 1);

				border: 1px solid rgba(119, 102, 231, 0.08);

				box-shadow: 1px 3px 0px  rgba(119, 102, 231, 0.08);
				
				margin: 0 8px 10px 0;
				position: relative;
				.sname{
					font-size: 12px;
					font-weight: 400;
					color: rgba(102, 102, 102, 1);
				}
				.dian{
					position: absolute;
					width: 4px;
					height: 4px;
					opacity: 1;
					background: rgba(119, 102, 231, 1);
					top: 4px;
					right: 4px;
					border-radius: 50%;
				}
			}
			.shenactive{
				border: 1px solid rgba(119, 102, 231, 1);
				box-shadow: 1px 3px 0px  rgba(119, 102, 231, 1);
				.sname{
					color: rgba(119, 102, 231, 1);
					font-weight: 700;
				}

			}
		}
	}
	.mxian{
		display: block;
		border: 1px dashed rgba(232, 232, 232, 1);
		margin: 20px 0;
	}
	.mthree{
		border-radius: 12px;
		background: rgba(255, 255, 255, 1);
		box-shadow: 0px 6px 10px  rgba(119, 102, 231, 0.08);
		padding: 20px;
		display: flex;
		flex-direction: row;
		align-items: center;
		.tou2{
			width: 39px;
			height: 39px;
			margin-right: 10px;
		}
		.rennav{
			width: 58%;
			display: flex;
			flex-direction: column;
			.nichen{
				max-width: 80%;
				display: inline-block;
				font-size: 14px;
				font-weight: 500;
				color: rgba(102, 102, 102, 1);
			}
			.bang{
				font-size: 12px;
				font-weight: 400;
				text-decoration-line: underline;
				color: rgba(153, 153, 153, 1);
			}
		}
		
		.maview{
			margin-left: auto;
			display: flex;
			flex-direction: column;
			.manum{
				font-size: 14px;
				font-weight: 500;
				color: rgba(51, 51, 51, 1);
			}
			.mamiao{
				font-size: 12px;
				font-weight: 400;
				color: rgba(153, 153, 153, 1);
			}
		}
	}
	.xinbu{
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 20px;
		.buitem{
			width: 30%;
			min-width: 135px;
			margin: 0 5px; 
			height: 36px;
			opacity: 1;
			border-radius: 9px;
			background: rgba(255, 255, 255, 1);
			box-shadow: 0px 6px 10px  rgba(119, 102, 231, 0.08);
			align-items: center;
			display: flex;
			justify-content: center;
			font-size: 14px;
			font-weight: 400;
			color: rgba(119, 102, 231, 1);
		}
	}
	.xinlist{
		.xinitem{
			padding: 10px;
			margin-bottom: 10px;
			border-radius: 9px;
			background: rgba(255, 255, 255, 1);
			box-shadow: 0px 6px 10px  rgba(119, 102, 231, 0.08);
			display: flex;
			flex-direction: row;
			align-items: center;
			.tou2{
				width: 36px;
				height: 36px;
				border-radius: 50%;
				margin-right: 15px;
			}
			.xinnav{
				display: flex;
				flex-direction: column;
				width: 60%;
				.xinone{
					display: flex;
					flex-direction: row;
					align-items: center;
					.xinname{
						max-width: 80%;
						display: inline-block;
						font-size: 12px;
						font-weight: 400;
						color: rgba(102, 102, 102, 1);
					}
					.xinhao{
						font-size: 12px;
						font-weight: 400;
						display: inline-block;
						margin-left: 10px;
						color: rgba(102, 102, 102, 1);
					}
				}
				.xinbiaoqian{
					display: flex;
					flex-direction: row;
					margin-top: 5px;
					.xbiao{
						display: flex;
						flex-direction: row;
						align-items: center;
						padding: 3px 5px;
						border-radius: 3px;
						margin-right: 15px;
						background: rgba(255, 255, 255, 1);

						border: 1px solid rgba(220, 214, 255, 1);
						.yunjian{
							width: 12px;
							height: 12px;
							margin-right: 3px;
						}
						.bname{
							font-size: 10px;
							font-weight: 400;
							color: rgba(102, 102, 102, 1);
						}
					}
					.xactive{
						background: rgba(119, 102, 231, 1);
						border: none;
						.bname{
							color: #fff;
						}
					}
				}
				
			}
			.bj{
				margin-left: auto;
				width: 44px;
				height: 28px;
				opacity: 1;
				border-radius: 6px;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 12px;
				font-weight: 400;
				color: rgba(255, 255, 255, 1);
				background: rgba(119, 102, 231, 1);
			}

		}
	}

}	
</style>
